PLCopen 2-Axes Template - FFLD and SFC

This template project contains a two-axis template for getting started with a KASClosed Kollmorgen Automation Suite application.

This project contains two axes where Axis 2 is slaved to Axis 1 at a 2:1 ratio.

PLC Programs

The 2-axes PLCopenClosed A vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML. template has an SFC program (called Main) that initializes and starts the motion.

PLCopen - Template Main

Figure 1: PLCopen - Template Main

Step 5 of the Main program in the PLCopen template contains the FFLD code for running the motion. As defined below with the MoveVelocity function blockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs., the motion profile is based on a trapezoidal accelerationClosed A change in velocity over time. Because velocity is a vector, it can change in two ways: a change in magnitude and/or a change in direction. In one dimension, acceleration is the rate at which something speeds up or slows down. However, more generally, acceleration is a vector quantity expressing the change with time of the velocity both in magnitude and in direction. See these Wikipedia articles for more information: http://en.wikipedia.org/wiki/Velocity http://en.wikipedia.org/wiki/Euclidean_vector http://en.wikipedia.org/wiki/Rate_(mathematics) / deceleration.

See S-curve and Trapezoidal Acceleration / Deceleration.

PLCopen Template - Step 5  of the Main

Figure 2: PLCopen Template - Step 5 of the Main

The template contains two PLCopen Servo axes where User Units, Update Rate, Rollover Position, and Axis Limits are defined as:

Figure 3: PLCopen Template - Motion

See Axis Data Parameters for more information about PLCopen axis parameters.

The template contains a Control Panel which works inside of the IDEClosed Integrated Development Environment - An type of computer software that assists computer programmers in developing software. IDEs normally consist of a source code editor, a compiler and/or interpreter, build-automation tools, and a debugger. when running a project.

It is a useful tool to run and debug programs.

Control Panel Screens

The Control Panel has these screens:

  • Control Panel
  • Fault Report Panel

Control Panel Sections

The Control Panel has these sections:

  • Multi-Axis Commands: Controls motion and shows gearing.
  • Single Axis Motion Commands: Shows motion at the single axis level and resettingClosed New start of the microprocessor. the axis position.
  • Axis Status: Shows basic axis information.

See Design the HMI with the Internal Editor for more information.

PLCopen Template - Control Panel

Figure 4: PLCopen Template - Control Panel

Call out# Description

Allows for enabling or disabling the axes.

After an emergency stop, select the Reset and Enable commands before running the axes.

Displays the actual position for each axis.

Used to set the speedClosed Speed is the absolute value of the velocity without direction..

Start or stop the motion on the condition that the axes are enable.

The green light must be switched on.

Control the axis motion.

Fault Report Panel provides more detailed information about when a drive fault occurs.

Figure 5: PLCopen Template - Fault Report Panel

Based on the template, the project can be run using either the:

Included in the project template are HMI screens for the AKI terminals created in the KVBClosed Kollmorgen Visual Builder for HMI (Kollmorgen Visualization Builder) environmentClosed Environment objects are global objects that exist before the execution of the script. Typically, they are global objects of Astrolab that can be accessed from the script..

The project can be run in the KVB programming environment after the KAS-IDE program has started running.

Click on the Run button in the Project ribbon to start the program.

These screens, localized in English and German, are included that duplicate the controls on the IDE Internal Control panel screens.